package com.imooc.user.repository;

import com.imooc.user.dataobject.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author steve
 * @date 2020/6/24 16:33
 */
public interface UserRepository extends JpaRepository<UserInfo, String> {

    /**
     * 根据openid查找用户数据
     * @param openid
     * @return
     */
    UserInfo findByOpenid(String openid);
}
